package com.ls.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "PositionDto",description = "职位表Dto")
public class PositionDto implements Serializable {


    private static final long serialVersionUID = 5925031914155135663L;
    /**
     * 职位表id
     */
    private Integer positionId;

    /**
     * 职位名
     */
    private String positionName;

    /**
     * 创建时间
     */

    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCreateTime() {
        return new Date();
    }

    /**
     * 状态 1:有效 0:无效
     */
    private Integer status;

    /**
     * 部门编号
     */
    private Integer depId;

    /**
     * 页码
     */
    private Integer page;

    /**
     * 分页大小
     */
    private Integer pageSize;
}
